package com.pxst.controller;

import com.pxst.entity.BaseEntity;
import com.pxst.merchant.entity.SysMerchantAgentEntity;
import com.pxst.resp.ApiResp;
import com.pxst.service.AgentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Cheng
 * @since 2023-11-15 19:10:23
 */

@RestController
@RequestMapping("/api/agent")
@Api(tags = "代理相关接口")
public class AgentController {

    @Autowired
    private AgentService  agentService;

    @GetMapping("/simple")
    @ApiOperation(value = "代理信息")
    public ApiResp<List<SysMerchantAgentEntity>> list(Long id){
        return agentService.getById(id);
    }
}
